package cn.edu.xmu.wnw.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * Title entity. @author MyEclipse Persistence Tools
 */

public class Title  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Community community;
     private String name;
     private Date createTime;
     private Integer hit;
     private Set discussions = new HashSet(0);


    // Constructors

    /** default constructor */
    public Title() {
    }

    
    /** full constructor */
    public Title(Community community, String name, Date createTime, Integer hit, Set discussions) {
        this.community = community;
        this.name = name;
        this.createTime = createTime;
        this.hit = hit;
        this.discussions = discussions;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Community getCommunity() {
        return this.community;
    }
    
    public void setCommunity(Community community) {
        this.community = community;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getHit() {
        return this.hit;
    }
    
    public void setHit(Integer hit) {
        this.hit = hit;
    }

    public Set getDiscussions() {
        return this.discussions;
    }
    
    public void setDiscussions(Set discussions) {
        this.discussions = discussions;
    }
   








}